package com.bjpowernode.boss.mvc.models.pages;

import lombok.Getter;

/**
 * 分页对象
 * 封装分页相关的数据
 *
 * @author yu
 * @date 2024/7/10  0:07
 */

@Getter
public class PageInfo {
    private Long current ;
    private Long totalPage ;

    public PageInfo() {
    }

    public PageInfo(Long current, Long totalPage) {
        this.current = current ;
        this.totalPage = totalPage == 0 ? 1 : totalPage ;
    }
}
